﻿@model Irandeb4.Models.Employee


<script src="@Url.Content("~/Scripts/jquery-1.5.1.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Empleado</legend>
        <table>
            <tr>
                <td class="editor-label">
                    @Html.LabelFor(model => model.Ci, "CI:")
                </td>
                <td class="editor-field">
                    @Html.EditorFor(model => model.Ci)
                    @Html.ValidationMessageFor(model => model.Ci)
                </td>
            </tr>

            <tr>
                <td class="editor-label">
                    @Html.LabelFor(model => model.Names, "Nombre:")
                </td>
                <td class="editor-field">
                    @Html.EditorFor(model => model.Names)
                    @Html.ValidationMessageFor(model => model.Names)
                </td>
            </tr>

            <tr>
                <td class="editor-label">
                    @Html.LabelFor(model => model.Surnames, "Apellidos:")
                </td>
                <td class="editor-field">
                    @Html.EditorFor(model => model.Surnames)
                    @Html.ValidationMessageFor(model => model.Surnames)
                </td>
            </tr>

            <tr>
                <td class="editor-label">
                    @Html.LabelFor(model => model.Email, "Email:")
                </td>
                <td class="editor-field">
                    @Html.EditorFor(model => model.Email)
                    @Html.ValidationMessageFor(model => model.Email)
                </td>
            </tr>

            <tr>
                <td class="editor-label">
                    @Html.LabelFor(model => model.Cellphone, "Celular:")
                </td>
                <td class="editor-field">
                    @Html.EditorFor(model => model.Cellphone)
                    @Html.ValidationMessageFor(model => model.Cellphone)
                </td>
            </tr>

            <tr>
                <td class="editor-label">
                    @Html.LabelFor(model => model.Address, "Direccion:")
                </td>
                <td class="editor-field">
                    @Html.EditorFor(model => model.Address)
                    @Html.ValidationMessageFor(model => model.Address)
                </td>
            </tr>

            <tr>
                <td class="editor-label">
                    @Html.LabelFor(model => model.Position, "Cargo:")
                </td>
                <td class="editor-field">
                    @Html.EditorFor(model => model.Position)
                    @Html.ValidationMessageFor(model => model.Position)
                </td>
            </tr>
        </table>
          
    </fieldset>
}

    <!--Html.ActionLink("Back to List", "Index")-->
